Update billing policy
Change some billing settings of this scope without resending the rest: blocked, parent_balance_enabled, rate_card_id (null detaches) and agent_rate_cards (replaces the list, [] clears it); every other setting is kept.
Authorizations
Body
Partial billing policy update payload
Whether this plan attachment draws from its parent organisation's balance: the parent's attachment to the same plan, or further up while that one has the option on too. Usage, prices and the ledger stay on this customer. Plan attachments only. On policy writes, omission keeps the current value (false on creation), and enabling it is rejected while the parent chain has no balance to draw from.
false
The customer's rate card for one agent at a time. It prices that agent's records first and falls through row by row to the policy's card, the plan's card for the agent, then the plan's card. At most one entry per agent. On writes, omission keeps the current list and an empty list clears it.
200Response
Whether this plan attachment draws from its parent organisation's balance: the parent's attachment to the same plan, or further up while that one has the option on too. Usage, prices and the ledger stay on this customer. Plan attachments only. On policy writes, omission keeps the current value (false on creation), and enabling it is rejected while the parent chain has no balance to draw from.
false
ID of the customer whose balance this policy draws from: the policy's own customer, or the parent organisation holding it when parent_balance_enabled is true. Null when the parent chain has no balance to draw from, in which case consumption is rejected as for a policy with no balance.
"cus_example"
Behavior when credits or an allowance are exhausted. Policy values may inherit the attached plan.
- refuse: Rejects the call that crosses the boundary without deducting usage.
- metered: Prices the whole call as monetary overage, using the overage card or USD provider cost plus markup.
- usage_events: Accepts the call as overage and bills it as usage events (
event_type: ai_overage_usage, one per item with itsunits) priced by your catalog. overage_markup_percent and overage_rate_card_id must be null. Not available in wallet mode.
refuse, metered, usage_events "metered"
The customer's rate card for one agent at a time. It prices that agent's records first and falls through row by row to the policy's card, the plan's card for the agent, then the plan's card. At most one entry per agent. On writes, omission keeps the current list and an empty list clears it.

